#!/bin/bash


echo "Test Case 1: Testing 60/60..."

tc=`java -jar Grades.jar 60 60`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi

# passed:1
# failed:0
# test case 1:60/60 passed

echo "Test Case 2: Testing 100/100..."

tc=`java -jar Grades.jar 100 100`

if [ "$tc" = "Pass with distinction" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:0
#failed:1
#Test Case 2 100/100 failed

echo "Test Case 3:Testing 70/10."

tc=`java -jar Grades.jar 70 10`

if [ "$tc" = "Component Fail" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:1
#failed:0
# Test Case 3 70/10 passed


echo "Test Case 4:Testing 51/51"

tc=`java -jar Grades.jar 51 51`

if [ "$tc" = "Pass" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:1
#failed:0
# Test Case4: 51 51 passed

echo "Test Case 5:Testing 50 50"

tc=`java -jar Grades.jar 50 50`

if [ "$tc" = "Pass" ]

  then
  echo "Test Passed"
else
echo "Test Failed"
fi

#passed:1
#failed:0
# Test Case5: 50 50 passed


